import { uniFileUpload, request } from '@/utils/request';

export function putrdConnect(obj?: Object) {
  return request({
    url: '/pm/rdConnect',
    method: 'PUT',
    data: obj,
  });
}

export function submitrdConnectProcess(id?: string) {
  return request({
    url: '/pm/rdConnect/submitProcess/' + id,
    method: 'GET',
  });
}

export function reviverdConnectProcess(id?: string) {
  return request({
    url: '/pm/rdConnect/reviveProcess/' + id,
    method: 'GET',
  });
}

export function delrdConnectObj(ids?: object) {
  return request({
    url: '/pm/rdConnect',
    method: 'DELETE',
    data: ids,
  });
}

export function getrdConnectbj(id?: string) {
  return request({
    url: '/pm/rdConnect/' + id,
    method: 'GET',
  });
}

export function revokerdConnectProcess(query?: Object) {
  return request({
    url: '/pm/rdConnect/revoke',
    method: 'GET',
    query: query,
  });
}

export function completerdConnect(obj?: Object, id?: string) {
  return request({
    url: '/pm/rdConnect/complete?id=' + id,
    method: 'POST',
    data: obj,
  });
}

export function getRdConnectPage(query?: Object) {
  return request({
    url: '/pm/rdConnect/getRdConnectPage',
    method: 'GET',
    query: query,
  });
}

export function addrdConnect(obj?: Object) {
  return request({
    url: '/pm/rdConnect',
    method: 'POST',
    data: obj,
  });
}

export function closeProcess(obj?: Object) {
  return request({
    url: '/pm/rdConnect/closeProcess',
    method: 'PUT',
    data: obj,
  });
}
